package string;

public class ReplaceAllDemo {
    public static void main(String[] args) {
        String str = "abc132def456hi";
        str = str.replaceAll("[0-9]+","#NUMBER#");
        System.out.println(str);
    }
}
